package com.scs.application.modules.dept.entity;


import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityIndexAnnotation;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 检验项目结果信息
 * </p>
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "检验项目结果信息")
@TableName("dept_inspection_result")
@EntityIndexAnnotation(ix = {"ins_item_no","ins_time"})
public class InspectionResult extends DataEntity {

    // id ,在父类中处理

    @EntityFieldAnnotation(
            text = "病案号",
            length = "50",
            not_null = false,
            default_value = ""
    )
    private String patientNo;

    @EntityFieldAnnotation(
            text = "病人类型（1:门诊，2:住院）",
            length = "10",
            not_null = false,
            default_value = ""
    )
    private String patientType;

    @EntityFieldAnnotation(
            text = "HIS住院号/门诊号",
            length = "50",
            not_null = false,
            default_value = ""
    )
    private String iouPatientNo;

    @EntityFieldAnnotation(
            text = "标本编号",
            length = "50",
            not_null = false,
            default_value = ""
    )
    private String spemNo;

    @EntityFieldAnnotation(
            text = "结果编号（检验结果的唯一标识）",
            length = "50",
            not_null = true,
            default_value = ""
    )
    private String resNo;

    @EntityFieldAnnotation(
            text = "检验项目编码（检验项目唯一标识）",
            length = "50",
            not_null = true,
            default_value = ""
    )
    private String insItemNo;

    @EntityFieldAnnotation(
            text = "检验项目名称",
            length = "50",
            not_null = false,
            default_value = ""
    )
    private String insItemName;

    @EntityFieldAnnotation(
            text = "检验时间",
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private Date insTime;

    @EntityFieldAnnotation(
            text = "结果出具时间",
            length = "",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private Date resTime;

    @EntityFieldAnnotation(
            text = "检验设备编码",
            length = "20",
            not_null = false,
            default_value = ""
    )
    private String insEqCode;

    @EntityFieldAnnotation(
            text = "检验设备名称",
            length = "100",
            not_null = false,
            default_value = ""
    )
    private String insEqName;

    @EntityFieldAnnotation(
            text = "专业组编码",
            length = "20",
            not_null = false,
            default_value = ""
    )
    private String groupCode;

    @EntityFieldAnnotation(
            text = "专业组名称",
            length = "50",
            not_null = false,
            default_value = ""
    )
    private String groupName;

    @EntityFieldAnnotation(
            text = "检测人工号",
            length = "20",
            not_null = false,
            default_value = ""
    )
    private String insStaffNo;

    @EntityFieldAnnotation(
            text = "检测类型（1:常规检验,2:科研检验,3:质控检验,4:复检）",
            length = "10",
            not_null = false,
            default_value = ""
    )
    private String insType;




}
